﻿<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
             x:Class="GiveAQuiz.Questions.EssayAnswerControl"
             mc:Ignorable="d"
             d:DesignHeight="197"
             d:DesignWidth="400">

  <Grid x:Name="LayoutRoot"
        VerticalAlignment="Top">
    <Grid.RowDefinitions>
      <RowDefinition Height="Auto" />
      <RowDefinition Height="Auto" />
      <RowDefinition Height="Auto" />
    </Grid.RowDefinitions>
    <TextBlock TextWrapping="Wrap"
               Text="{Binding QuestionText}"
               Margin="2 0" />
    <TextBox Margin="2,2,2,0"
             TextWrapping="Wrap"
             Text="{Binding AnswerText, Mode=TwoWay, NotifyOnValidationError=True}"
             Grid.Row="1"
             BorderThickness="1"
             MinHeight="50"
             VerticalAlignment="Top" />

    <sdk:ValidationSummary d:LayoutOverrides="Width, Height"
                           Grid.Row="2" />

  </Grid>
</UserControl>
